package oop.ex3.filemanager.actions;

import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock;

import oop.ex3.filemanager.FMContext;

public class PrintFiles extends FmAction {

	/**
	 * constructor for action
	 * @param context
	 */
	public PrintFiles(FMContext context) {
		super(context);
	}

	/**
	 * print all files in FM's DB
	 */
	public void run(String[] params) {
		Set<String> files = _context.getFilesNames();
		for (String file : files){
			System.out.println(file);
		}
	}

}
